package org.mozhu.mboot.admin.system.privilege.web.controller;

import org.mozhu.mboot.admin.system.privilege.entity.Permission;
import org.mozhu.mboot.admin.system.privilege.service.PermissionService;
import org.mozhu.mboot.core.web.bind.annotation.ControllerDefaults;
import org.mozhu.mboot.core.web.controller.BaseTreeableController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/system/privilege/permission")
@Controller
@ControllerDefaults(resourceIdentity = "system:permission")
public class PermissionController extends BaseTreeableController<Permission, Long> {

    protected PermissionService getBaseService() {
        return (PermissionService) baseTreeableService;
    }

}